package stripsLanguage;

public class Ordering {

	/** a source step of the ordering **/
	private Step FirstStep;
	
	/** a last step of the ordering **/
	private Step LastStep;
	
	public Ordering(
		Step firstStep,
		Step lastStep)
	{		
		FirstStep = firstStep;
		LastStep = lastStep;
	}
	
	public Step getFirstStep() {
		return FirstStep;
	}

	public Step getLastStep() {
		return LastStep;
	}
	
	public String toString()
	{
		return "(" + FirstStep.getId() + "," + FirstStep.getName()
			+ " -> " + LastStep.getId() + ", " + LastStep.getName() + ")";		
	}
}
